import request from '@/utils/request';

/*

Author: factoryOpen
Date: 2025-06-01
Version: 1.0.0-draft.0
Web URL: www.factoryopen.net

*/


// 查询货币列表
export function listCurrency(query) {
    return request({
        url: '/bas/currency/list',
        method: 'get',
        params: query
    })
}

// 查询货币详细
export function getCurrency(id) {
    return request({
        url: '/bas/currency/' + id,
        method: 'get'
    })
}

// 新增货币
export function addCurrency(data) {
    return request({
        url: '/bas/currency',
        method: 'post',
        data: data
    })
}

// 修改货币
export function updateCurrency(data) {
    return request({
        url: '/bas/currency',
        method: 'put',
        data: data
    })
}

// 删除货币
export function delCurrency(id) {
    return request({
        url: '/bas/currency/' + id,
        method: 'delete'
    })
}



